package org.jeecg.modules.api;

import org.jeecg.common.constant.ServiceNameConstants;
import org.jeecg.modules.api.falback.EmissionTestFallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 碳排放因子库测试接口
 */
@Component
@FeignClient(contextId = "emissionTestApi", value = ServiceNameConstants.EMISSION_SERVICE, path = "emissionTest", fallback = EmissionTestFallback.class)
@ConditionalOnMissingClass("org.jeecg.modules.factor.controller.EmissionTestController")
public interface EmissionTestApi {

    /**
     * 获取碳排放因子库模块数据
     */
    @GetMapping(value = "/getModelData")
    String getModelData();
}
